package com.dai.yygh.repository;

import com.dai.yygh.model.hosp.Department;
import com.dai.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author lijian
 * @create 2021-04-27 10:03
 */
@Repository
public interface DepartmentRepository extends MongoRepository<Department,String> {
    List<Department> findDepartmentsByHoscodeLike(String hoscode);
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);
}
